home *** CD-ROM | disk | FTP | other *** search
- Path: nntp-trd.UNINETT.no!usenet
- From: Hσvard Pedersen <havardp@mail.stud.ingok.hitos.no>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: 24bit -> HAM6/HAM8
- Date: Thu, 21 Mar 1996 12:30:42 -0800
- Organization: HIT
- Message-ID: <3151BC72.6988@mail.stud.ingok.hitos.no>
- References: <4ik6l3$18v@irz409.inf.tu-dresden.de>
- NNTP-Posting-Host: dig108.stud.ingok.hitos.no
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Sven Steiniger wrote:
- > I have just a small question. How could I dither(?) a 24bit-buffer to HAM6
- > or HAM8?
-
- As I see it, there are two easy ways to accomplish this. First you need a
- palette. This could be done by:
-
- a) computing a palette using a histogram from the picture.
- b) using a fixed palette of 64 colors. 2-red, 2-green, 2-blue.
-
- And then walk through the picture pixel for pixel determining which color
- gives closest match, hold-and-modify or fetching a color from the palette. I
- haven't tried this in theory, so I don't know how the speed or result will be
- for this method, but I believe this is what most applications does. For even
- better results, a normal floyd-steinberg-dithering could be applied.
-
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-"Sometimes I wish there was a knob for intelligence on my TV set. There's
- one called brightness, but it doesn't seem to work." - Brian Eno
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-Hσvard Pedersen E-Mail: havardp@mail.stud.ingok.hitos.no
- aka Howard/Mental Diseases IRC-Channels: #amiga, #amigascne, #norway
- IRC-Nick: Howard_MD
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
-